//
//  HMTestViewController.swift
//  Weibo
//
//  Created by Apple on 2017/6/3.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        addPushButton()
    }
    
    //  添加push按钮
    private func addPushButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(pushAction))
    }
    
    //  MARK:   -- PushAction
    @objc private func pushAction() {
        let testVc = HMTestViewController()
        navigationController?.pushViewController(testVc, animated: true)
    }
}
